package com.msw.dubbo.service;

import com.msw.dubbo.entity.Order;
import org.apache.dubbo.config.annotation.Service;

import java.util.Date;
import java.util.List;

/**
 * @author mashuangwei
 * @version 1.0.0
 * @date 2022-06-07 21:07:50
 */
@Service

public class OrderServiceImpl implements OrderService {
    @Override
    public String addOrder() {
        return "order: " + new Date().toString();
    }

    @Override
    public Order updateOrder(Order order) {
        return order;
    }

    @Override
    public List<Order> batchOrders(List<Order> orders) {
        System.err.println("batchOrders: " + orders);
        return orders;
    }


}
